import service from '@/utils/request'

// @Tags QmRemain
// @Summary 创建qmRemain表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmRemain true "创建qmRemain表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /qmRemain/createQmRemain [post]
export const createQmRemain = (data) => {
  return service({
    url: '/qmRemain/createQmRemain',
    method: 'post',
    data
  })
}

// @Tags QmRemain
// @Summary 删除qmRemain表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmRemain true "删除qmRemain表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmRemain/deleteQmRemain [delete]
export const deleteQmRemain = (params) => {
  return service({
    url: '/qmRemain/deleteQmRemain',
    method: 'delete',
    params
  })
}

// @Tags QmRemain
// @Summary 批量删除qmRemain表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除qmRemain表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /qmRemain/deleteQmRemain [delete]
export const deleteQmRemainByIds = (params) => {
  return service({
    url: '/qmRemain/deleteQmRemainByIds',
    method: 'delete',
    params
  })
}

// @Tags QmRemain
// @Summary 更新qmRemain表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.QmRemain true "更新qmRemain表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /qmRemain/updateQmRemain [put]
export const updateQmRemain = (data) => {
  return service({
    url: '/qmRemain/updateQmRemain',
    method: 'put',
    data
  })
}

// @Tags QmRemain
// @Summary 用id查询qmRemain表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.QmRemain true "用id查询qmRemain表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /qmRemain/findQmRemain [get]
export const findQmRemain = (params) => {
  return service({
    url: '/qmRemain/findQmRemain',
    method: 'get',
    params
  })
}

// @Tags QmRemain
// @Summary 分页获取qmRemain表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取qmRemain表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /qmRemain/getQmRemainList [get]
export const getQmRemainList = (params) => {
  return service({
    url: '/qmRemain/getQmRemainList',
    method: 'get',
    params
  })
}
